package com.ziwei.doushu.model;

import java.io.Serializable;

/**
 * 生辰信息数据模型
 */
public class BirthInfo implements Serializable {
    private int year;
    private int month;
    private int day;
    private int hour;
    private boolean isMale;
    
    public BirthInfo() {}
    
    public BirthInfo(int year, int month, int day, int hour, boolean isMale) {
        this.year = year;
        this.month = month;
        this.day = day;
        this.hour = hour;
        this.isMale = isMale;
    }
    
    // Getters and Setters
    public int getYear() { return year; }
    public void setYear(int year) { this.year = year; }
    
    public int getMonth() { return month; }
    public void setMonth(int month) { this.month = month; }
    
    public int getDay() { return day; }
    public void setDay(int day) { this.day = day; }
    
    public int getHour() { return hour; }
    public void setHour(int hour) { this.hour = hour; }
    
    public boolean isMale() { return isMale; }
    public void setMale(boolean male) { isMale = male; }
    
    @Override
    public String toString() {
        return String.format("%d年%d月%d日%d时 %s", 
            year, month, day, hour, isMale ? "男" : "女");
    }
}
